from django.conf.urls.defaults import *
import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    '',
    # Example:
    # (r'^jumpingbaby/', include('jumpingbaby.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     (r'^admin/(.*)', admin.site.root),
    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    (r'^image/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.IMAGE_ROOT}),
    url(r'^$', 'main.views.index', name='index'),
    url(r'^about_us/$', 'main.views.about_us', name='about_us'),
    url(r'^teacher_intro/$', 'main.views.teacher_intro', name='teacher_intro'),
    url(r'^faq/$', 'main.views.faq', name='faq'),
    url(r'^classes/$', 'main.views.classes', name='classes'),
    url(r'^news/$', 'main.views.news', name='news'),
    url(r'^hotline/$', 'main.views.hotline', name='hotline'),
    url(r'^contact_us/$', 'main.views.contact_us', name='contact_us'),
    url(r'^join_us/$', 'main.views.join_us', name='join_us'),
    url(r'^join_us_1/$', 'main.views.join_us_1', name='join_us_1'),
    url(r'^join_us_2/$', 'main.views.join_us_2', name='join_us_2'),
    url(r'^news_opening_in_china/$', 'main.views.news_opening_in_china', name='news_opening_in_china'),
    url(r'^news_opening_in_china2/$', 'main.views.news_opening_in_china2', name='news_opening_in_china2'),
    url(r'^login/$', 'main.views.my_login', name='login'),
    url(r'^logout/$', 'main.views.my_logout', name='logout'),
    url(r'^reserve/$', 'main.views.reserve', name='reserve'),
    url(r'^bean_test/$', 'main.views.bean_test', name='bean_test'),
    (r'^base$', 'main.views.base'),

    url(r'^register/$', 'main.views.register', name='register'),
    url(r'^register_success/$', 'main.views.register_success', name='register_success'),
    url(r'^reserve_success/$', 'main.views.reserve_success', name='reserve_success'),
)
